// -----------------------------------------------------------------------------
// Generate By Furion Tools v1.6.0                            
// -----------------------------------------------------------------------------

using Furion.DatabaseAccessor;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Metadata.Builders;
using System;
using System.Collections.Generic;

#nullable disable

namespace iemtm.WeChat.Core
{
    public partial class TroubleReport : IEntity<MasterDbContextLocator>, IEntityTypeBuilder<TroubleReport, MasterDbContextLocator>
    {

        public int Id { get; set; }
        public string DtuId { get; set; }
        public string GensetNum { get; set; }
        public DateTime? OccurTime { get; set; }
        public string Reason { get; set; }
        public double? GpsLatBd { get; set; }
        public double? GpsLgtBd { get; set; }
        public string PrjCode { get; set; }
    
        public void Configure(EntityTypeBuilder<TroubleReport> entityBuilder, DbContext dbContext, Type dbContextLocator)
        {
               

                entityBuilder.Property(e => e.DtuId).HasMaxLength(50);

                entityBuilder.Property(e => e.GensetNum).HasMaxLength(50);

                entityBuilder.Property(e => e.OccurTime).HasColumnType("datetime");

                entityBuilder.Property(e => e.PrjCode).HasMaxLength(100);

                entityBuilder.Property(e => e.Reason).HasMaxLength(100);
        }

    }
}

